<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="http://srvmcturucm:8011/S_Compartidos/Proxy/swInstanciaLegalBPM_Proxy?WSDL"/>
      <rootElement name="catchDESESTIM" namespace="http://xmlns.oracle.com/bpmn/bpmnProcess/bpmEvaluacion"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="http://srvmcturucm:8011/S_Compartidos/Proxy/swInstanciaLegalBPM_Proxy?WSDL"/>
      <rootElement name="catchAPELACIO" namespace="http://xmlns.oracle.com/bpmn/bpmnProcess/bpmEvaluacion"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.7.0(build 130301.0647.0008) AT [THU JUN 20 10:37:35 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:ns1="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns2="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
                xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:tns6="http://mincetur.gob.pe/SIC/expediente/solicitudRM"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:tns7="http://mincetur.gob.pe/SIC/accion/accionSolicitudTipo"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:ns0="http://mincetur.gob.pe/SIC/documento/PlantillaTipo"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:tns="http://xmlns.oracle.com/bpmn/bpmnProcess/bpmEvaluacion"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl ns1 ns2 SOAP-ENC plnk soap wsdl tns6 tns7 ns0 tns xsd bpws xp20 bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:template match="/">
    <tns:catchAPELACIO>
      <tns7:ACCIONSOLICITUD>
        <xsl:if test="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@COD_TIPOACCION">
          <xsl:attribute name="COD_TIPOACCION">
            <xsl:value-of select="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@COD_TIPOACCION"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:if test="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@DES_MOTIVO">
          <xsl:attribute name="DES_MOTIVO">
            <xsl:value-of select="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@DES_MOTIVO"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:if test="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@NUM_DIASSOLI">
          <xsl:attribute name="NUM_DIASSOLI">
            <xsl:value-of select="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@NUM_DIASSOLI"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:if test="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@NUM_DIASOTOR">
          <xsl:attribute name="NUM_DIASOTOR">
            <xsl:value-of select="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@NUM_DIASOTOR"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:if test="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@DES_FECHA">
          <xsl:attribute name="DES_FECHA">
            <xsl:value-of select="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@DES_FECHA"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:if test="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@DES_CORRELTI">
          <xsl:attribute name="DES_CORRELTI">
            <xsl:value-of select="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@DES_CORRELTI"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:if test="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@ID_TAREADESDE">
          <xsl:attribute name="ID_TAREADESDE">
            <xsl:value-of select="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/@ID_TAREADESDE"/>
          </xsl:attribute>
        </xsl:if>
        <tns7:DOCUMENTOS>
          <xsl:if test="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/tns7:DOCUMENTOS/tns7:DOCUMENTO">
            <xsl:for-each select="/tns:catchDESESTIM/tns7:ACCIONSOLICITUD/tns7:DOCUMENTOS/tns7:DOCUMENTO">
              <tns7:DOCUMENTO>
                <xsl:if test="@ID_DOCU">
                  <xsl:attribute name="ID_DOCU">
                    <xsl:value-of select="@ID_DOCU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="@COD_EXTEDOCU">
                  <xsl:attribute name="COD_EXTEDOCU">
                    <xsl:text disable-output-escaping="no">PDF</xsl:text>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="@DES_FEC_CREACION">
                  <xsl:attribute name="DES_FEC_CREACION">
                    <xsl:value-of select="@DES_FEC_CREACION"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="@DES_TITULO">
                  <xsl:attribute name="DES_TITULO">
                    <xsl:value-of select="@DES_TITULO"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="@DES_NOMBREAL">
                  <xsl:attribute name="DES_NOMBREAL">
                    <xsl:value-of select="@DES_NOMBREAL"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="@COD_TIPODOCU">
                  <xsl:attribute name="COD_TIPODOCU">
                    <xsl:value-of select="@COD_TIPODOCU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="@COD_STIPODOCU">
                  <xsl:attribute name="COD_STIPODOCU">
                    <xsl:value-of select="@COD_STIPODOCU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="@COD_ESTA">
                  <xsl:attribute name="COD_ESTA">
                    <xsl:value-of select="@COD_ESTA"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="@DES_LOCAURI">
                  <xsl:attribute name="DES_LOCAURI">
                    <xsl:value-of select="@DES_LOCAURI"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="@DES_PERSCREADOR">
                  <xsl:attribute name="DES_PERSCREADOR">
                    <xsl:value-of select="@DES_PERSCREADOR"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:value-of select="."/>
              </tns7:DOCUMENTO>
            </xsl:for-each>
          </xsl:if>
        </tns7:DOCUMENTOS>
      </tns7:ACCIONSOLICITUD>
    </tns:catchAPELACIO>
  </xsl:template>
</xsl:stylesheet>
